package com.cw.spider.parse.jxtv;

import cn.wanghaomiao.seimi.annotation.Crawler;
import cn.wanghaomiao.seimi.http.SeimiHttpType;
import cn.wanghaomiao.seimi.struct.Response;
import com.cw.spider.parse.AbstractCrawler;
import com.cw.spider.queue.Myqueue;
import com.cw.spider.service.NewService;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 描述:
 *
 * @author withqianqian@163.com
 * @create 2020-08-31 16:37
 */
@Crawler(name = "jx_bd_basic", httpType = SeimiHttpType.OK_HTTP3, delay = 1,
        httpTimeOut = 3000, queue = Myqueue.class)
public class JxBdCrawler extends AbstractCrawler {

    @Autowired
    NewService newService;


    /**
     * 针对startUrl生成首批的response回调这个初始接口
     *
     * @param response --
     */
    @Override
    public void start(Response response) {
        getArticle(response,newService);
    }


}
